package com.lecyon.farm.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import javax.persistence.Id;
import java.time.LocalDateTime;
import java.time.ZoneId;

/**
 * 无效图片信息
 *
 * @author Yao Zheng
 * @Date 2020/5/14 14:47
 */
@Document(collection = "sync_invalid_image_information")
@Data
public class InvalidImageInformation {

    @Id
    private String id;

    @Field
    private String targetPlatform = "lvgu";

    @Field
    private String picUrl;

    @Field
    private String fileName;

    @Field
    private String gpsLon;

    @Field
    private String gpsLat;

    @Field
    private String carId;

    @Field
    private String createDate;

    @Field
    private String time;

    @Field
    private LocalDateTime syncTime = LocalDateTime.now(ZoneId.systemDefault());

}
